package com.spddr.pmos.jpa;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.joda.time.DateTime;

import cn.seqdata.jpa.AbstractPersistable;

@Entity
@Table(name = "energy_check")
public class EnergyCheck extends AbstractPersistable<EnergyCheckId> {
	private static final long serialVersionUID = 1L;

	private Double energy;
	private Double price;
	private Double fee;
	private Double rate;

	public EnergyCheck() {
	}

	public EnergyCheck(DateTime occur, long plant) {
		setId(new EnergyCheckId(occur, plant));
	}

	@Column(name = "energy")
	public Double getEnergy() {
		return this.energy;
	}

	public void setEnergy(Double energy) {
		this.energy = energy;
	}

	@Column(name = "price", scale = 4)
	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	@Column(name = "fee", scale = 4)
	public Double getFee() {
		return this.fee;
	}

	public void setFee(Double fee) {
		this.fee = fee;
	}

	@Column(name = "rate")
	public Double getRate() {
		return this.rate;
	}

	public void setRate(Double rate) {
		this.rate = rate;
	}
}